package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mapper.OrderMapper;
import com.example.pojo.Order;
import com.example.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {
    @Autowired
    private OrderMapper orderMapper;


    @Override
    public List<Order> selectOrderList(int classification, int start, int pageSize) {
        return orderMapper.selectOrderList(classification, start, pageSize);
    }

    @Override
    public int selectOrderCount(Integer classification) {
        return orderMapper.selectOrderCount(classification);
    }

    @Override
    public Order selectOrderById(int id) {
        return orderMapper.selectOrderById(id);
    }
}
